﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EDP.Application.Web.BizParam._default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('panel_grid_List_ctl00_btn_query');
                __doPostBack('panel$grid_List$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="hide_applicationId" runat="server" />
        <f:HiddenField ID="hide_ClassifyFullCode" runat="server" />
        <f:HiddenField ID="hide_classifyId" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="10" Layout="Region" RegionSplit="true">
            <Items>
                <f:Tree ID="tree" runat="server" Title="业务参数分类" Margin="0" Width="240" RegionPosition="Left" OnNodeCommand="tree_NodeCommand" />
                <f:Grid ID="grid_List" runat="server" Title="业务参数列表" Margin="0 0 0 5" RegionPosition="Center" SortField="SortNumber" DataKeyNames="ID"
                    OnPreRowDataBound="grid_List_PreRowDataBound" OnRowCommand="grid_List_RowCommand" OnSort="grid_List_Sort" OnPageIndexChange="grid_List_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                            <Items>
                                <f:TextBox ID="tb1" runat="server" EmptyText="参数编号/参数名称" QueryName="NumbersNameKeyword" Margin="0" Width="240" />
                                <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" />
                                <f:ToolbarFill runat="server" />
                                <f:Button ID="btn_classify" runat="server" Text="业务参数分类" Icon="FolderEdit" Margin="0 10 0 0" OnClick="btn_classify_Click"/>
                                <f:Button ID="btn_add" runat="server" Text="新增业务参数" Icon="Add" Margin="0 10 0 0" OnClick="btn_add_Click" />
                                <f:Button ID="btn_more" runat="server" Text="更多..." EnablePostBack="false">
                                    <Menu runat="server" Margin="0">
                                        <f:MenuButton ID="btn_setPermission" runat="server" Margin="0" Text="设置权限" OnClick="btn_setPermission_Click" />
                                        <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" ConfirmTitle="重置缓存" ConfirmText="是否重置缓存？" ConfirmTarget="Self" ConfirmIcon="Question" OnClick="btn_cache_Click" />
                                    </Menu>
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" Width="180" HeaderText="参数名称" />
                        <f:BoundField DataField="Numbers" Width="180" HeaderText="参数编号" />
                        <f:BoundField DataField="ApplicationName" Width="150" HeaderText="所属应用" />
                        <f:BoundField DataField="ClassifyName" Width="150" HeaderText="所属分类" />
                        <f:BoundField DataField="Value" ExpandUnusedSpace="true" HeaderText="参数值" />
                        <f:BoundField DataField="SortNumber" Width="65" HeaderText="排序号" TextAlign="right" />
                        <f:BoundField DataField="CreateUserName" Width="80" HeaderText="创建人" />
                        <f:BoundField DataField="CreateTime" Width="140" HeaderText="创建时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                            CommandTitle="设置业务参数启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑业务参数" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                        <f:LinkButtonField ColumnID="lb_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除业务参数" ToolTip="删除" Icon="Delete"
                            ConfirmTitle="删除业务参数" ConfirmText="是否删除该业务参数？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="win_classify" runat="server" Title="业务参数分类" CloseAction="HidePostBack" OnClose="win_classify_Close" />
        <f:Window ID="win_edit" runat="server" OnClose="win_edit_Close" />
        <f:Window ID="win_permission" runat="server" Target="Top"  />
    </form>
</body>
</html>
